﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/AdminSite.Master" Inherits="System.Web.Mvc.ViewPage<Sys.WebRes.Publish.Areas.Admin.Models.SectionModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	编辑栏目
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="BodyContent" runat="server">
    <% using (Html.BeginForm(null, null, FormMethod.Post, new { id = "EditForm", @name = "EditForm" }))
       {%>
        <%= Html.ValidationSummary(true)%>
        
        <fieldset>
            <legend>栏目数据项</legend>
            <%= Html.HiddenFor(model => model.ID)%>
            <table style="width:100%; height:100%;">
                <tr>
                    <td class="editor-label">
                        <label for="name">栏目名称</label>
                    </td>
                    <td class="editor-field">
                        <%= Html.TextBoxFor(model => model.Name)%>
                        <%= Html.ValidationMessageFor(model => model.Name)%>
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        <label for="abbr">缩写(勿重复)</label>
                    </td>
                    <td class="editor-field">
                        <%= Html.TextBoxFor(model => model.Abbr)%>
                        <%= Html.ValidationMessageFor(model => model.Abbr)%>
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        <label for="ResTypeID">资源类型</label>
                    </td>
                    <td class="editor-field">
                        <input class="easyui-combobox"
			                name="ResTypeID"
                            value='<%=Model.ResTypeID %>'
			                url='<%=Url.Action("ResType", "Dropdown")%>'
			                valueField="value" 
			                textField="text"
			                panelHeight="auto"/>
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        <label for="ParentID">所属栏目</label>
                    </td>
                    <td class="editor-field">
                        <input class="easyui-combotree" 
			                name="ParentID"
                            value='<%=Model.ParentID %>'
			                url='<%=Url.Action("Section", "Dropdown")%>'
			                panelWidth="200"/>
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        <label for="summary">概要</label>
                    </td>
                    <td class="editor-field">
                        <%= Html.TextAreaFor(model => model.Summary, new { rows = 5, cols = 30 })%>
                        <%= Html.ValidationMessageFor(model => model.Summary)%>
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        <label for="lvelNo">栏目层次</label>
                    </td>
                    <td class="editor-field">
                        <%= Html.TextBoxFor(model => model.LevelNo)%>
                        <%= Html.ValidationMessageFor(model => model.LevelNo)%>
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        <label for="orderNo">显示顺序</label>
                    </td>
                    <td class="editor-field">
                        <%= Html.TextBoxFor(model => model.OrderNo)%>
                        <%= Html.ValidationMessageFor(model => model.OrderNo)%>
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        <label for="StatusTypeID">状态</label>
                    </td>
                    <td class="editor-field">
                        <input class="easyui-combobox" 
			                name="StatusTypeID"
                            value='<%=Model.StatusTypeID %>'
			                url='<%=Url.Action("StatusType", "Dropdown")%>'
			                valueField="value" 
			                textField="text"
			                panelHeight="auto">
                        <%= Html.ValidationMessageFor(model => model.StatusTypeID)%>
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        <label for="Visible">前台可见</label>
                    </td>
                    <td class="editor-field">
                        <%= Html.CheckBoxFor(model => model.Visible)%>
                        <%= Html.ValidationMessageFor(model => model.Visible)%>
                    </td>
                </tr>
            </table>
            <div class="operDiv" style="text-align:center; height:40px;"><br />
                <a class="easyui-linkbutton" href="javascript:document.forms[0].submit();" onclick="">保存</a>
                <a class="easyui-linkbutton" href="javascript:void(0)" onclick="cancel()">取消</a>
            </div>
        </fieldset>
    <% } %>
</asp:Content>
